package com.ruoyi.service;

import org.springframework.web.multipart.MultipartFile;

import javax.servlet.http.HttpServletResponse;
import java.io.IOException;

/**
 * @Author:zzm
 * @Date: 2024/8/29 21:17
 */
public interface FinanceService {

    /**
     *
     * @param response
     * @param operationsFile 库内操作表
     * @param detailsFile  费用明细表
     * @param updateSupport
     * @throws IOException
     */
    void twoToOne(HttpServletResponse response,MultipartFile operationsFile,MultipartFile detailsFile, boolean updateSupport) throws IOException;

    /**
     * 最初成本模板
     */
    void costExport(HttpServletResponse response) throws Exception;

    void cost(HttpServletResponse response,MultipartFile costFile,MultipartFile detailsFile, boolean updateSupport) throws IOException;


    void oldLongCost(HttpServletResponse response,MultipartFile costFile,MultipartFile detailsFile, boolean updateSupport) throws Exception;

    void longCost(HttpServletResponse response,MultipartFile costFile,MultipartFile detailsFile, boolean updateSupport) throws Exception;
    void longCostBusy(HttpServletResponse response,MultipartFile costFile,MultipartFile detailsFile, boolean updateSupport) throws Exception;

    /**
     * 导出模板
     */
    void handleExport(HttpServletResponse response);

    void oldSurroundCost(HttpServletResponse response,MultipartFile costFile,MultipartFile detailsFile, boolean updateSupport) throws Exception;
    void surroundCost(HttpServletResponse response,MultipartFile costFile,MultipartFile detailsFile, boolean updateSupport) throws Exception;
    void surroundCostBusy(HttpServletResponse response,MultipartFile costFile,MultipartFile detailsFile, boolean updateSupport) throws Exception;

    /**
     * 客户成本模板导出
     * @param response
     * @throws Exception
     */
    void partitionWeightExport(HttpServletResponse response) throws Exception;

    void draggingCabinet(HttpServletResponse response,MultipartFile costFile,MultipartFile detailsFile, boolean updateSupport) throws IOException;


    void draggingCabinetExportTemplate(HttpServletResponse response);

}
